//
//  MapViewController.h
//
//  SFU Pathways 2012 by UGuideUs
//
//  Created by Viswanadh Nekkanti on 16/06/2012.
//

#import <UIKit/UIKit.h>
#import <MapKit/MapKit.h>
#import <UIKit/UIKit.h>

@interface MapViewController : UIViewController <MKMapViewDelegate> {
    
    IBOutlet MKMapView *mapView;
    
    // Buttons for selecting one of the various enabled buildings. 
    IBOutlet UIButton *button1;
    IBOutlet UIButton *button2;
    IBOutlet UIButton *button3;
    IBOutlet UIButton *button4;
    IBOutlet UIButton *button5;
    
    // Button that controls display of the enabled building selection list.
    IBOutlet UIBarButtonItem *roombutton;
    
    // Button that controls background map type.
    IBOutlet UIButton *mapDesc;
    
}

@property (weak, nonatomic) IBOutlet UITextField *textfield;
@property (weak, nonatomic) IBOutlet MKMapView *mapView;
@property (weak, nonatomic) IBOutlet UIButton *mylocation;
@property (strong, nonatomic) IBOutlet CLLocationManager *locationmanager;
@property (strong, nonatomic) IBOutlet UILabel *errorMessage;

- (IBAction) setMap : (id)sender;
- (IBAction) getMyLocation : (id)sender;
- (IBAction) searchlocation : (id)sender;

// Hide keyboard functions.
- (IBAction) returnKeyboard : (id)sender;
- (IBAction) backTouched : (id)sender;

// Room selection functions.
- (IBAction) reveal;
- (IBAction) selectAQ : (id)sender;
- (IBAction) selectASB : (id)sender;
- (IBAction) selectBLU : (id)sender;
- (IBAction) selectSWH : (id)sender;
- (IBAction) selectWMC : (id)sender;

// Error message functions.
- (IBAction) clearError : (id)sender;

@end
